package com.yunpeng.dishes.common.vo;

import java.io.Serializable;
import java.util.List;

/**
 * FoodNutrientsVO 食材营养元素展示数据对象
 *
 * @author : Moore(hemw)
 * @date : 2020-03-26
 */
public class FoodNutrientsVO implements Serializable {
    /**
     * 食材记录id
     */
    private Long id;

    /**
     * 食材编码
     */
    private String code;

    /**
     * 食材名称
     */
    private String name;
    /**
     * 食材类别
     * 蔬菜
     * 肉类
     * 禽类
     * 蘑菇
     * 谷类
     * ...
     */
    private String category;
    /**
     * 营养元素列表
     */
    private List<NutrientsVO> nutrients;

    public FoodNutrientsVO() {
    }

    public FoodNutrientsVO(Long id, String code, String name, String category, List<NutrientsVO> nutrients) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.category = category;
        this.nutrients = nutrients;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public List<NutrientsVO> getNutrients() {
        return nutrients;
    }

    public void setNutrients(List<NutrientsVO> nutrients) {
        this.nutrients = nutrients;
    }

    @Override
    public String toString() {
        return "FoodNutrientsVO{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", nutrients=" + nutrients +
                '}';
    }
}
